package com.znow.admin.system.security.config;

import com.google.common.collect.Lists;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * 应用系统全局配置
 *
 * @author PC
 * @date 2022/12/14
 */
@Slf4j
@Data
@Configuration
public class SysConfig {

    /**
     * 令牌到期时间
     */
    @Value("${token.expireTime:1000}")
    private Long tokenExpireTime;

    /**
     * 忽略的url
     */
    private List<String> ignoreUrl = Lists.newArrayList(
            "/sys/login",
            "/sys/logout"
    );
}
